﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Modules_LoginBanner : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!Page.User.Identity.IsAuthenticated)
        //{
        //    //string link = "~/MRP_login.aspx?ReturnURL=" + Request.Url.AbsolutePath.ToString();
        //    //HyperLink btn = LoginView1.FindControl("Logintbtn") as HyperLink;
        //    //if (btn != null)
        //    //    btn.NavigateUrl = link;
        //}
    }
    protected void Logoutbtn_Click(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();
        FormsAuthentication.RedirectToLoginPage();
        Session["EVOLUserID"] = -1;
    }
}
